Skip to content

Follow the Windows display language in the guest - #82

Merged
btsouth merged 1 commit into
masterfrom
host-lang
Sep 5, 2026
Merged

Follow the Windows display language in the guest#82
btsouth merged 1 commit into
masterfrom
host-lang

Conversation

@btsouth

@btsouth btsouth commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

The guest ran en_US regardless of the Windows display language.

Launcher: GetUserDefaultLocaleName gives names such as de-DE; the launcher maps them to the POSIX form (de_DE, region required, script tags rejected) and passes tryomarchy.locale= beside the zone and keyboard parameters. -locale overrides it per launch (keep leaves the guest alone). Diagnostics record the host locale.

Guest (patch 0043): the host-locale service validates the name, checks the locale source exists, enables the xx_YY.UTF-8 UTF-8 line in locale.gen, runs locale-gen, and writes LANG to locale.conf, only when the value changes so a language chosen inside the guest survives. Sessions pick it up at the next login. Tests cover generation, idempotence, and unsafe or unavailable names. Integration revision and smoke test move to 11.

Tested in the VM: the launcher passed tryomarchy.locale=en_US; the new script run inside the guest with de_DE generated the locale in 1.6 s, set LANG=de_DE.UTF-8, and reverted cleanly.

The launcher reads the user's Windows locale, maps it to the POSIX name, and passes tryomarchy.locale= beside the zone and keyboard. Guest patch 0043 extends the host-locale service to generate that UTF-8 locale and set it as the system default when the value changes; integration revision and smoke test move to 11.
@btsouth
btsouth merged commit 23388d8 into master Sep 5, 2026
3 checks passed
@btsouth
btsouth deleted the host-lang branch September 5, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant